fix typo, and add main function

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