Removed dot files from being picked up by the dir read
Removed debug function