added new function up_remove_too_small which removes all SPWs which
don't reach given amplitude
Finding beginning of each IPSP improved