added points to summary and added code for saving data to file