Added Flashmessenger and fixed some bugs