split logging into log.c; --colors toggle option