As a developer new to APR conventions, I commented the existing source as I went along to help my understanding.
This patch reflects the comments I made, along with (whitespace-only) source code changes to formatting. (followed the APR conventions a little bit more).
Patch 1 of 2
Added more comments to sources as I understood them