added tree() to print directory tree structure