add comments to parser.go