added abilty to save dataset to file and load it from file