fix #411 sliding window bug

- add function for explicit slide counter incrementation
- remove const from function which change inner class state
fix comments
Merge pull request #413 from psychocoderHPC/fix-movingWindowSlideBug

Fix #411 moving window slide bug