add window_index option

includes docs and tests
take base-index into account in WindowIndexTest
Merge pull request #31 from stratoukos/master

add window_index option