created WrongSyntaxException, changed names of some methods, fixed style bugs