Updated examples and added write data ability