refactored for readability
added some class documentation
removed old document and parser