created a Color model. Organized and documented some of the js functions