code of Log class refactored. Operate class partly refactored.