wrote code for logger, added file operations to ctrl