Bug fixes and a new notepad feature