Changed the hard coded file extensions for h5 files to a global define.