added flash count to plugin.
Added new modules: UI and SystemTray.