Added documentation and stub for adding sub-rules.
Implemented sub rules.
Replaced internal sub-rules with actual sub-rules.
Added handling of dependency tracking
Implemented rule references. Will fail if rule does not exist.
Changed checking for internal commands on removal.