Modified processName function to allow use of directory. Added chalk coloring.