fix possible memory-leak and issue detecting host's URI-map
update GPL FSF address - closes #1