Added comments and removed commented-out code.