Documentation and housecleaning