refactor of all the chunking windowing in progress, went overboard
finish reworking the improved logic, back to testing
fix up basic tests and resulting bugs