Added note code.

This commit adds the code that makes the entity class for the notes
work.