adds comments explaining what functions do