Added a rule viewer. Closes #16