Changed to match new ForeignFun definition. Also more haddock wibbles.