Simplified the coloring, more flexible config, fixed a bug in nargs.