Bug fixes
Now implemented file existence checking