added possibility to stop MR-loop and made some changes to processTweet