AGPL 3 preamble in every class, comments.

Also made the note view more generic.