Rules now an object. Library documentation.

* Rules is now expected to be an object containing a list of rules.
* COMMENT ALL THE THINGS!  // ALLLLLLLLLLL THE THINGS