finished debug of repetition algos, tied into the UI - all seems to be working correctly