Now reads both ipv4 & ipv6 rules completely

output generated is rules as string and then json