Added gh_import and bugfixes