rewrite arg parsing

- use argparse module
- change layout and only show events when debug enabled