Added basic appending of log messages for testing purposes.
Changed command line argument processing to use JOpt. 
Added some unit and functional tests.