added attention staircase code for MEG experiments