adding sample code for displaying notes

There is a note browser in the sample app that shows how you can
display notes.

fix warnings