Updated docblock and cleaned up comments in body of functions.