added documentation for parser method