7/23/14 - added demotion of colors to rule8 and minor bug fixes