Fixed string interpolation issue with manifests.py.

String interpolation for a debug message was missing a '%' sign. Also
added docstrings and fixed some indentation issues.