Remove extraneous logging and add documentation.