Removed deprecated testBuffer instance. Reduced tryAcquire timeout from 200ms to 10ms. Modified isEmpty to check correct buffer (was previously checking testBuffer).
Removed empty line.
Refactored mapTasks into MapTask class from MapReduce class.
Added debug print calls.