Documentation and cleaning code.