forgot to close file pointer in saveDataSet. now fixed.
Finished first draft of create dataset tutorial