Added Comments on the codes