Improved javadoc

Mostly javadoc.

Minor cleanup in the AtomicReference/AtomicLong so that the async method is called from the sync method so that all methods are used.