[wip] almost finalised the LFP analysis tools