Added models.note.init function