Added javadoc and renamed some variables so the code is easier to understand
Authored by: dcaffrey 2023-07-19
Parent: [r1881]
Child: [r1883]