fixed comments
fixed braces
fixed spaces around braces for if,while,for,else