Adding support for capturing response headers

Adding support for capturing response headers, fixing documentation, cleanup