added more functionalities for the web api service
improved the main web api