Throw exception in case invalid response
Adds some comments