Maintenance and redid rgba mixin

- new function splitrgb() for splitting a colour into a map of its
component red, blue and green
- rgba mixin now uses splitrgb()
- removed unused function pow()
- minor comment changes