Most everything working except buffer overflow in main while loop
Most everything working except buffer overflow in main while loop