cleanup code, for flags by @bear; then add a test case for ParseTweet