Colors in terminal

Added support for coloring in terminal and also basic imporvement on
path slicing