adding notes, fixing spacing for code