Added more log4j logging, fixed some references to the old ruletype
string and converted them into the new RuleType enumeration.