Write/read raw data to/from shell
Example code clean up