added comments to Parser class