Adds documentation for contentload variables and functions.
Cleans up code for contentload.