Moved RewriteCycleException outside of RuleLibrary class.
Updated documentation