functions doc

* started to add function documentation: model and basics. I followed the example of existing tags.
* small text fixes