added hsl support
code cleanup
helper script