Updated DatasetProvider and MetadataProvider and their implementations use specific exceptions.

- Some formatting fixup occurred in the process.
Updated DatasetReader and its implementations use specific exceptions.

- Some formatting fixup occurred in the process.
Updated DatasetWriter and its implementations use specific exceptions.

- Some formatting fixup occurred in the process.
Went through with intellij's inspectors to clean up unused exception, imports, redundant code, etc.