Added .jar file of compiled RuleBook
wrote unit tests.

Plus reorganized within the ugly file a bit/commented more