added comments to note_controller.js