added comments to parser