changed input funcs to accept pc1 and pc2 data types, cleaned up downsampling func, downsampling func needs more work to be completly finished