small fixes
fix edge cases
new source and some bug fixes
Merge branch 'master' of https://github.com/cevian/disttopk