Add -i option

Add a test for whether or not something is an IP address
working checkin
Rewrite for libares