Completed first draft of rest api connectivity and downloading of data