Use 'new this.constructor' to make it easier to inherit the parser object correctly
Fixed missing constructor due to overwritten prototype object
More straightforward way to set prototype.constructor
Merge pull request #1109 from dprentis/feature/parser_update

Update parser to allow easier inheritance of Parser object for custom functionality