added comments to parser class