style(bin): set bin execution to use main()

use main() for bin entry point. scan() is used for real scanning