added check-create note file if missing on read or write, removed extra whitespaces and file offset