Console and main program function

added SMGConsole class and fleshed out the main program a little bit