Some minor cleanups, also changed "purple" to "magenta" to match ANSI standards.