Fix whitespace in help and code formatting.
(Errors were introduced during PEP8 conformance.)
Simplify Matrix classes by inheriting from defaultdict.
Tidy up ColorMap, add test cases.