handle BagOfWords.codewords_ more sensibly
improve sphinx generation a bit; still sucks