fixed minor things
changed make_xy to take a parameter function instead of parameter
added data files