CHECK INSIGHTS.txt for my thoughts after fucking around a little more
did the setvbuf thing which made a bunch more test cases pass, also fixed some formatting stuff