added verbose flag
added reaping to loop, shutdown handler
changes to shutdown handling (not done)