Revert "Revert "Altered most IO Operations to use NIO.2 and AutoCloseable try statements""

This reverts commit 2dbfa7be70e47c91f10416f2e99087d208a528ae.
Automatic cleanup of the import statements