Bugs fixed
Minor logfile improvements