minor comment
typo
made IP and PORT configurable
remove duplicates in WHITELIST