LOG_FILE varaible fixed, some improvments from myke