Add function attrs avl

Solves #139 and therefor #114 partly.