New note creation
Fix bugs. Refactor code.