Changed Accumulator to be a class
Moved count to outer thread and fix small javadoc error