rewrite to allow configuration of relations to compute
Merge pull request #18 from danstaines/master

rewrite to allow configuration of relations to compute