rm more cruft, use ternary if
more comments, better semantics
add colors