some changes to driver and vector<Pages> saving and loading