remove useless files, rename files and fix some problems