Documentation and cleaning in controllers