bytesize increased to 4096 and lisdirs method is added to format listing