Improved specs for webservice

* webservice class is now 100% covered
Fix some bug in Webservice class

*Fix typo
*Fix documentation
*Fix function