Basic byte-order swap functions. Directory and FileSystem improovements