Better variable names to update the threshold window
Document public methods in header files