Add ipv4 and ipv6 format options with tests.
Add ipv4 and ipv6 format documentation.