added boolean optional in Input, getters in HasCategory, more code in
RuleParser