refactored code
wrote moer stuff
need to sort out what happens with pearson