JParser working

* Added testPrint function to JParser to give easy to understand test
* Changes made as needed to other functions to support this