(PDOC-3) Add method headers for new libraries

Add some comments for the new methods that have been introduced
to ensure that the code is readable and well documented.