Make monitor buf_len global

Change the scope of buf_len so it is preserved between calls to
nextAddr. If it is set too small it will only need to grow once, rather
than having to be resized and triggering a resynchronization on every
call to the function.

Fix README