adding config function and datetime display for logging messages
fixing conflicts