replaced AtomicLong with long[1] and improved Javadoc.