Add commandline flag for selecting between main, sim and testnet