added some notes and deleted some code