added window size; corrupt packet check; log files; timeouts