Made some changes in Map_Seeking_Circuits.m file and made the entire code more modular. The two layers have been coded separately and the parameters can be easily set by the user at the top of the code.