Fix reference pool size checking bug
Fix misleading Javadoc
Add missing Javadoc
Run automatic source format compliance