add command-line parsing, timing stats