Fixed code inconsistencies

* 4 spaces per identation
* ; at the end of each statement