Added Comments and Code