Changed colors to RULEs and made corrections to the reset Data function

Changed colors to RULEs and made corrections to the reset Data function