Allow custom functions instead of built-in ones by specifying the function pointer as, for example, covFunc or meanFunc. Also added an example script to demonstrate custom kernel usage based on the sine function test.