API and Pull to refresh

Did some API work and added some pull to refresh functions