Some refactoring, and added the ability to set custom headers on the request
Release v0.3.2