Implemented alot more rigourous flat area finder. Fixed numerous bugs
related to use of parent limits contra own reduced limits. Implemented
and tested a cheat window where head and tail were cut off to simplify
the calculation.
fixed bug in window overlap calculation
finding windows and nonwindowed version works well. Issues with solving
subwindows.
updated todo