General tidying, fixed a bug in t_fatal and started color implementation