Modify main file, add some options.
Add logging level options.