adding inout, simple io, file io
converted byte arrays to string