Add read/write methods

@leto, although I have commit bit, I would love if you could give me some comments on this.
Nevertheless, if in the next couple days I do not hear from you, I'll merge it.

Thanks