imported some of the data from Kery and Schaub 2011 and updated some of the example code from help files