several improvements
better
Merge pull request #13 from fponticelli/master

added enabled flag to rule and changed a couple of rule implementations