added a small function to shift all sites with fractional c coordinates as 1 to 0