Added Comments to functions