Added Logging and testTweet function