init code dealing with options
add main.c