tidy and delete unnecessary files