Added new options and cleaned code.
Added histignoredups and cleaned code.
Variables. Damn.