changed logfile using variable
added first output examples