util.format_size: Adds docstring.
hook.py: Fixes the docstring formatting. Adds more docstrings.