Add dynamicParser functionality

Improved Exception handling
Improved unit tests and test coverage.