reorg, better makefile, tested out and modified mirror shell script