Code comments; terminal colours; improved cmdline opt handling