Add example for writing functions, edit and sharpen the making_functions section. Add test code.
Shorten writing functions section.