Prefix '_' to internal functions; change convention for ``_grad_func``