created shared library
updated term_sentiment, tweet_sentiment, and frequency to use library