Cleanup main()
flag usetls -> notls
Add mlog