added help and docstring for func