Added Comments For Better Understanding Of Code