made the thread a bit prettier and runs twice a second.  fleshed out the shutdown functions a whole lot more.