Save to localStorage, add a UI for bookmarks, fix bugs