Fixed error documentation
Another attempt at getting rid of the wall warnings