Legibility improvement on ErrorReport

These are some changes I've made for a different fork. It contains mostly changes to improve the legibility of the code.