added colour support to nice_print and cleaned up errors