Added colored logging test and cleaned up code a bit (fixed accidental
global variables, etc...)