The docstrings for public functions within dynamic_inventory.py are
passed through Sphinx and added to the inventory documentation page.
This change also corrects some of the syntax for the docstrings to fix
warnings and errors.
Change-Id: Ic461b5cff1351111ce3221093f1d6627d2b10aab