Add v.sample2 wrote by Soeren, add the capability tosave the results