Added comments and formatted code.
Added based URL and corrected getting HDF.