Cleanup and comments in door manager