- replaced tabs with 4 spaces

 - fixed spaces after commas, if conditions, braces, operators
- fixed some typecasting issues as well