A bunch of shit

Functions added for interacting with endpoints from the pi