Notepad 2.0

Bug fixes, crash workarounds, and UX improvements for 2.0.