changed two header structure members' names
Fixed crash on memory allocation for dirName
Deleteted useless cast
Fixed decryptdata check