cv functions implemented and tested
added lexicon and external ref functions, and tested