Cleanup of code (warnings, typos, spaces, newlines).

I should seriously quick smoking crack.