implemented proper file attributes validation
Merge pull request #104 from evillemez/file_attributes

implemented & tested proper file attributes validation