Updating example scripts/source code to incoorporate the updated I/O scheme. --kazu