Convert tabs to spaces and update comments.
Try as best we can to define terminal colours.