Fixed correlation example, fixes to error messages

The current correlation.tcl example would produce an error - the variable named pos_file was used twice for different things. Examples of "correlating data from input file" and "feeding arbitrary data to correlator" were doing parts of the same job.