Improve stability. Let the user choose the sample in the ui. Gtk wrapper still bugged