Add option parsing; add bash flag to print commands as executed (-x).