cleaned up SentimentAnalyzer class