Fixed a bug w/ hyphens as last char in hostnames.
Implement parse_prefix.
Small cosmetical changes in doc.
Add positive parse_prefix tests.