remove old test, update readme
make miage dir reference function global