Added throughput test (uses non binary semaphore). moved some #includes and changed some comments