Added ability to parse subdomains. Various other improvements.