modified stuff
started writing algorithm for SDM manuscript
.