add main

add main argc argv
add atoi(), change char to int.

Signed-off-by: Lindell Xu <lxu@vetronicsltd.com.cn>