Refactoring

Putting the ruleset in a seperate file for easy manipulation.