changed to group into functions for sohwing, saving and writing colour info to csv