support for structured addresses (closes #29); bug fixes