fixed for py2.6 compatibility
minor refactoring/cleanup; ability to store only K best results
Merge branch 'kwd-early-prototype' of ssh://github.com/vidma/DAS into kwd-early-prototype