changed custom template to custom function call
fixed function call, documentation and app scaffold