Added open/close/read/write operations.

Missing implementation for read/write.