Fixed some formating bugs in rule def gen tool.