added check for rule quality, support for data2.txt

The rules work about 3/4 of the time