- added some unit test that can run with jasmine-node. Added better cursor positioning for errors