Added license to gemspec
Cleaned up helpers and removed global variables