Added function to init and load configuration from command line