add ipv4&ipv6 filters; change logic & fix bugs; add cmdline options; config file move to home dir