Refactored gemspec and fixed the loader.