adds in proper x bound limiting, comments out some extra print data thats not used anymore