Bringing repo up-to-date

- New rule engine
- Unit tests
- Many bug fixes in each one of the rules
Updated doc
Adding missing files for new rule engine
Adding missing unit tests