Added some notes regarding the code