Add .gitignore.
Handle IPv4 ranges better.
Merge remote-tracking branch 'origin/master'