(bug) fixed getTree to return array of roots. closes #50