Added comments and a main header.  Also eliminated some commented-out code that was no longer necessary.