fixed typos and added some notes.