Corrected detMax on colorMappings. Added comments