Change the -~ switch to debug mode and -J to the event history file; Pass slot and swrite value to write_event_to_log_file; Add Slot value to written event log file when swrite is 1 (DMR BS and P25p2); Misc Consistency Nits;