cleanup

Removed stuff hanging on the bottom of the file. Added newlines to better separate the logic.