Reindented all files to 2 spaces to be consistent

Also added some semicolons, removed one unnecessary semicolon on a for loop