Added MessageBuffer class. May not completely work yet.