handle dtypes
fix tests
remove memmaped file on close of class