fixed space
tabs to spaces
fix tabs properly
fixed isIP bug; added tests for it