API P2

Almost done. I simplified the api calls to two functions, which you could see in a simplified matter as a 'send' and 'receive'.
I might do a GUI for Processing next, it's not workable atm.