[ref+doc] Refactor and add comments with documentation
Changed structure of the parser, add backwards compatible methods and change arguments of nodes. Added documentation to source code and static files for generating html documentation.
Changed structure of the parser, add backwards compatible methods and change arguments of nodes. Added documentation to source code and static files for generating html documentation.