Added file type checking (allowing the hiding of only .txt files for now).