Use capitalise form throughout

fix for use of old uncapitalised variable name
General cleanup and minor bug fixes

Add sleep in to poll of block hits
Clean up output to console and chat throughout
Minor restructuring of some examples