TMan code cleanup and Javadoc addition.