3/2/14 - added functions to script.cpp and rgb.cpp