create gemspec and put code into gem format