Changes to tree.selectFolder; added tree.collapse

MODIFICATIONS:

tree.selectFolder
- folder is now always hidden/shown regardless of contents
- streamlined code

ADDITIONS:

tree.collapse
- closes open folders