Added Error Checking to Parser and Commented Code