fixed bug where multiple files are created in the tree view when adding files.
Also fixed issue where files saved are not correctly marked as clean
removed automatic selection of files when files are added to tree view