Added Threading
Added prefs and menu