Add attributes to avl functions

This PR redoes #140