exporting non-public API
use equals instead of ==
fix addRule method
Merge pull request #1 from hlavki/master

Decrease serialized rules tree size and minor fixes