changed spec structure
added github url to .gemspec

added new tests

added comments

made code look a little nicer