fixed getRules method inconsistent with setRules method issuse, added getFieldRules method