Add some more documentation to parser.rb