Correct syntax; should now work

Mostly whitespace changes but the hash syntax was wrong etc.