clean up weighted sd
Merge pull request #5 from jknowles/wtd.sd

clean up weighted sd