finished adding in optional header and data functionality to requests