Added better termination, better logging, HTML unescaped tweet text, and generally cleaned up some code