added notes and completing coding
added notes and completing coding