added cmd-line options, and leakage percentage