Added comments for input variables in each function