Got rid of global rest/ggs variables so our gtp2ogs code can be used as a library nicely