Tidied up the main file

Added a few missing semi-colons and fixed spaces between equal signs.