Functions sampleMSnSet and testMSnSet added