added documentation to parser