BuilHeader() , Buffer index, XorMessage() !READ

Moved header construction to BuildHeader

Buffer indexing is no longer by last_sent_index, but
current_index_to_send

!!! NOTE !!!
XorMessage() not yet checked at all.