Write and read works

Signed-off-by: Thommy Jakobsson <thommyj@gmail.com>