start of writeup
ksvd fixes
nlmeans done