Added better color code support.
Improved function interface and implemented the color code support.
Merge pull request #6 from gkbrk/master

Color codes and function interface