Minor code cleanup and addition of source code comment documentation.