fixed a bug in fetchDat().
added some tests
most recent version