update console header file (moved function into a namespace, removed un. class)