Convert functions to numpy arrays
Add examples to the documentation