added chalk coloring to console logs, moved logging into seperate module