deleted some commented code. Added throughput statistics.