Added Comments to Code to make more readable