Fixed issue with printing atomic number instead of index of atom in the file.

should change atomIndex variable eventually, since it appears to store the atomic number instead.