refactor to remove lfp code from spike analysis