added comments, minor cleanup of shutdown class