#13 A little more debugging and minor corrections
#13 Added some exception handling for the various rule types