tweaks to lars code
Merge branch 'master' of https://github.com/nkeriks/stats