Small bug fix and other improvements in UI / Add error report file on diagnosis failure