Add main function to start project from command line.