Fixed extension breaking GM loading

Added gmh_ prefix
Made the extension setup a function