changed starting phase of sinusoid to make method stable numerically
(less oversampling needed now)
sandwiched a refinement stage in between two successive coarse detection stages