added an example webapp
added more functions to the api