Added tclap library. Changed how command line switches are parsed.