More efficient binary IPv6 representation. Optional  parameter to getValidIpAddress. Small documentation and spacing fixes.