Added exception for readOnly state violation
General revision of FileDataUnit, added suport for directories
Merge FileDataUnit