a bit more and better logging
more tests
added a data dir and a variable DATA_DIR