Add documentation and tests to conversion.