update sdiff calculation
improve sdiff calculation
rearrange folders, update docs