added P300 peak amplitude calculation