Added a bunch of comments from previous versions
Eliminated the "This function needs documentation." messages :-)