added a different method for calculating the denominator; running now on sycorax; added debug statements for when it's running, and changed variable names in generate pxy;
fixed merge; changed more variable names in some loops;
added opening files debug print; the prints give a good idea of what the bottlenecks are;