Recursive algorithm to handle links/member# combinations
Additional comments and formatting
Removed debug println
Merge pull request #47 from williampma/relex2logic

Allow rules to be applied multiple times