x,y,z order rearranged from z,y,x. code works on 8-atom chgcar file