modified output text

made sure memcpy wasn't copying any random bits
fixing compiler errors