part 2 for new option to read dataset file

Pull request 11 and this one together are required to get the new read dataset file working