Rename setRule to addRule

Fixes issue #13 .

I have renamed `setRule` to `addRule` for in the discussion you mentioned about the change in name but with the same signature.