added documentation to Parser