Wrap cli in main function
Add reporting of finished jobs