final commit of the code and figures for Project1.