Remove some leftover comments
Prevent couple potential crashes
Add test for NoteManager
Add configure option for C++11