Added index to addRule to ensure order of rules
Merge pull request #6 from jmbjones/master

Added index to addRule to ensure order of rules