Move functions into files and colormath modules. Function renaming.