config parser and command line interface

Signed-off-by: Kouhei Maeda <mkouhei@palmtb.net>