Made stat work with nonexistant files and removed some debug code