Proxy configuration

This pull request is a continuation of #186.

I have updated the changes to ensure that the proxy configuration is passed on to the generated code, updated the documentation and a few other minor changes.