Added a lot of quick-and-dirty code, but cleaned up other bits;
Michael Le Page's rule set is now implemented FULLY!