Found and corrected error in reasinging new spw_starts and spw_nos to
ipsps
improved filter for checking the rise of IPSP