Cleanup , add impulsify algorithm and checkbox