rename createFunctionWithArgs to createFunctionWithUpvalues;
update documentation