Minor fixes in lecture notes

I fixed some minor mistakes in `notes.md` (first commit) and then improved formatting a bit.