clean up history loading and added a gemspec