Change interface to whole files (read+write).
tests ok for reading