checking to see if the resources exist before opening the file, added cleanup logic to the tree widget
ignoring unversioned files