Added if statement to build tree if input has attribute tree. fixes #98.
Merge pull request #104 from jfarid27/fix-issue-98

Added if statement to build tree if input has attribute tree. fixes #98.