cleaning up notes and typos