code cleanup - converted operation logic to single method
Merge branch 'master' of https://github.com/Meowse/RainbowHat