added examples to API page
made the api calls async
improving api test site slightly