Added long option to log file and updated debug command line option.