added error message for NS_ERROR_NET_TIMEOUT
added displayResult()
added optional storage of result