added comments explaining how to use the functions