Finished rule 6. Needs testing and debugging. Added a "equals" function to both tuples and nodes for easy comparison. Updated comments. Changed output path to be user defined.