Changed how colors are handled
Changed constructor to take object as parameter