split responseHelper as separate file.
added phpdocs comments.
some code for Authorization.