Rewrite input address parsing to allow rtp and udp inputs.
Add documentation.