Code formatting
Added IPv6 validation
Formatting