removed a big chunk from setbetterpeak
fixed fourpixfit

wasn't using endpoints
more code cleaning