Make a loaddp function that reads a txt file and creats a dp object with histories. recognize header lines.