erfactored the  provider, moved out color related bit operations to a util class. and wrote some unit tests for that util-class.