built in functions cleanup (removed some ungly and bugged)
implemented better color calculation (HSL)