update docs and tweak error module