Changed color format to HSV, added doc strings.