Fixed group_rotation_file function to add 1 to each index (since Fortran
counts from 1, not 0).