Made api more Ruby-like and fixed some bugs.

These are some changes that I made a while back. I thought the api was maintained by shopstyle, so I submitted the PR to the wrong fork. Here it is again.
I think it's more readable this way. I guess that's a matter of taste, but extracting a single (and quite simple) line of code into a helper doesn't really reduce complexity imho.