fixed weird formatting with midlevel and purged old useless files