added docstrings to parse.py