updated serial fuctions, still non-fuctional
fixed a buffering bug
fixed some buffering issues stopping proper serial output