Function runs, now I need to try some simulations for virtual electrode
Finally working!
New modules and done with virtual electrode

Virtual electrode seems to be working, now I just need to calculate the
PLI.
Cod erunning fine. Ready to code with real data.