modified various files to obtain results and graphs. must check again later