Added documentation to a few functions and classes.