all globabls (externs) now declared in main.  Seperating command line output into Output.*