Added a load method to the Dat class.