Corrected Indentation and Added Comments