Add documentation, minor change to server response handling