update docs & add setHeader and setAuth function