Convert this to standard PHP docblock format, and add docblocks to the functions missing documentation below.