File extension correction and extra file deletion.