new function dataformat
make check for file existence optional
add tests for dataformat constructor