Deduplicate file opening logic a little
Make functions local
Add log messages for dataset open/close
Remove old commented code
Check status when writing data
Remove old commented code
Improve object descriptions (display types/classes, etc)
Add missing require
Add fletcher32 filter detection
Add method for printing open objects in a file
Add method for checking whether we're in debug mode
Close object so we don't leak object handles!