initial code commit
optimized uart buffer handling