Added preferences menu item and persistence to timer