Added docblocks, getters and setters, code cleanup

Added dockblocks to every variable and method.
Added getter for response.
Added getter anda setter for user agent.
Added assertion logic (needs replacing with phpunit logic).