Add function attrs avl

Solves #139 and therefor #114 partly.
I was not sure about this, so I left it. But I'll add it.