Added files from https://github.com/asayler/COG/commit/68d1df183d33ca7c8ef4e26a72cfc0b231c4a805