Added logging of errors in web4.go and refactored, improved code.