more file IO added a load function that still needs implementation