json serialization of lexicon senses; minor api updates