Cleanup main

Moved licensing functions out to Config.h
Add simple command line parsing