Added --config option to load options from a json file