Cleaned up files and added comments

Also switched from using 4 spaces to using tabs. Was having issues with
the spaces.