Fixed coding style, visual spells a few other things pointed on comments