more work on unit tests
Did a little code cleanup, changed the version to 1.4.0 and generally prepared for the next release