refactor to modules, added some more docs
Merge branch 'master' of github.com:floatingpointsoftware/grapevine