Transform and compile function calls and add examples