Parser needs constructor

Parser's methods need refactoring but this starts

construct the class
basic documentation skeleton
move instabtiation of lib into constructor
add basic testscript