Removed @global tags from DocumentParser.
These were causing errors in generating the API docs. To investigate further.
Updated PHPdocs