commenting functions and data structures in to protected model having to do with finding/generating keys
adding error message to note edit error