cleaning up connection code
cleaned up task interface and refactored Main
fixed config args
fixed log directory
cleaned up globals
cleaning up command line configuration