stl diff code

full encoding of X,Y,Z, values into diff graph implemented