Get rid of a spurious print statement.
Fix a few more index type errors.