added logging of header sizes in debug mode
increased size of arbitrary recv buffer as temporary workaround for #4