Added the color switch and POD

Added the color switch -c and POD. Code refactoring and comments.