fixes attribute lookup and adds documentation