Added documentation strings to some functions.