Add comments describing the functions