added phpdoc and refactored GLRParser, adjusted Test
refactoring, documentation