Fixing return codes.
'network error' return code added,
handling of wget's error codes added.