added range check, NLP result class and new base analysis