added write functionality. Writes UUID. Extracted NFC realated stuff to separate class