added startConsole() function in xApp class
to allow early calling initConsole()
then startConsole() later to start command prompt thread
fix to properly run step 8 at startup
added { } blocks to startup/shutdown switches in xApp class