addNotes function

This is an internal function that adds notes