Add functions to readme

Add the api for the functions in the readme so people can read it from online.