Updated with new note type example and hooks.