Check NUID for changes and flush buffer if neccesary (closes #24)

- If the NUID ever changes flush the current buffer and set a new NUID
to check against.