cleaned up test code, added an optional testcase
added Mainfunc to vw4tool jar; uses GetOpt where available; version output tested in testcases