fixed api call and emails
Merge pull request #39 from Joshua-Pearson/fixing_api_call

fixed api call and emails