added message buffer drawing
added various small changes