mainly fixed syntax checker, still two grammar errors