no config object is logging. so why should layouts do it?
changed error codes. the higher the code the lower the error.
many small fixes, typo and newlines... housekeeping!