Added comments to parsers and improved error handling.