added argument and input logic to hili -- works with STDIN and file input