add pure2dm function
global dist working now
Merge branch 'master' of github.com:cosenal/sdt