added docs to jobFunctionWrapper