Implemented calculation of PSD and electrode selection for layouts.
Bug fix.