Add license and fix main
Add license and arguments