moved CLog into seperate file (still needs wiring up to rest of project)