added parameter for maximum spike clusters