Update library

Hi iggyigner

I've updated the main library to separate out the config and add a few other methods and documentation.

Please consider merging and updating the gem so it can be pulled from rubygems.

Thanks.