Added method to process input and out put flow in Circuit network and fix name of variables