Tweak for correctness in inputs.go, add docstrings to outputs.go.