add header and auth functions

setting headers and setting basic authentication
documentation update