Add Print method for debugging.
Add all the rules to the text file