added directory file parsing in preparation for multi-file encryption