restructured the text and analyser class, modified the analyseText method