Refactoring of core code to enable better reuse, using improvements in ParsEval driver