fixed bugs in text analysis and html rendering from tokens, moved html2text conversion inside analyze_text for better api, added beautifulsoup4 package