Fixed bug in takeWhile
Redid the ensureNoteIntegrity function because it was causing several issues.
Comments
Added condition for merging notes
Merge branch 're-note-vdom' into jp-note-styles