Fixed some bugs in twitter-cloud and cleaned up the code a bit.