better handling for uri's, added headers options to readme