Adds the ability to add custom IDs to rules

Fixes #50