Fixed up directory printing, but I think my endianness is switched.