Initial adaptive tracking windows - v0.4

Update to version 0.4. Includes simple growing search windows and
smaller changes all over the place which should have been commits. Oh
well.