Implemented new tweet function. Fixed some bugs.