Changed cutting of begin of wave.sp0. Now all different file types are supported.