Adds missing semicolons and code formatting so that it is consistent

It looks like most of the code uses 2 spaces for a tab. Some code was 2 tabs for indentation. I tried to clean up some of it.