Style, indentation, misspelled var name, missing semicolon fixes