removed unused import & docstring typo. Added debug flag to the parse function.