Fix Javadoc mistakes.
Make static variables and methods that call and update them thread safe.