Made notes have a type variable.
Moved note types to Note.
Refactored.