changed checkIfFileExists method to show all none existent files. Also improved indentation