changed fileio
changed fileio add small tests