Coding style

* Use tabs instead of spaces.
* white space between '//' and comment
* white space between if/while and opening bracket
* remove { } brackets of for loops as only one statement is in there