Refactor for latest GT release, better tests and build, docs