commented out section to print devices
cleaning
added destination and output port
cleaning
in effective dowhile loop. tidying
function tidying. added notify proc instead of timer.
brackets, removed unnecessary commenting