Added Comments to the functions