fixed a global variable issue.
simplified the structure of tweets input.
Fixed the spelling error of retrieve.
Assemble the modules