Improvements to logclients and runclient

I have made various improvements to the both example-scripts.
Other changes only amount to removal og blank lines, etc.