Notepad 2.1.1

Added basic note exporting functionality. Code refactoring to reduce
redundancy.