Documented some methods and fixed the spanning of ERROR messages