Implemented real parser.
Added error handling.
Added documentation.
Added internal parser.
tmp