delete extraneous stuff and rename files