Add examples and functions to API. Change test accordingly.