Enhancing Main.java to help other programs call it

This is the pull request from our conversation on the liquibase forums.  I've made the 5 changes we discussed there.

Sorry for the delay, March has been a really hectic month.

Steve