Protect coins and then ...?

This is a link to a document in which I coloured various inputs and outputs from ebfull’s example to help track them and identify where data is coming from throughout this procedure. http://s000.tinyupload.com/index.php?file_id=12431891893086228951