Added some notes and restored code to earlier state.