updated gemspec & fixed save/restore