Errors in code

Threads merged to save anyone else wasting their time.