[TIMOB-3035]Documentation and cleaning up code.