reorganize directory structure, add some bash scripts