added globals file, updated with httr stop_for_status, changed outputs to include metadata, fixed imports, #4, closes #3