Syntax maintainence

Fixed missing/excessive semicolons, added proper identity operators when missing, unified the mixed used of tabs/spaces (to spaces with 2 spaces as indentation).