Lazy read and write, added closed/name properties and fixed xreadlines