fix error message, missing space
add missing documentation