Added support for colors.
Added comments.
Merge pull request #2 from manojshevate/color-support

Added color support to existing text writer.