removing unnecessary files and rearranging necessary files