change log level to error
improve formatting on docs and change "err" to "error"