Moved CHECKs macros to logger
Added files that include generic functionality