initialize member (thanks to Jose Aparicio), use pre-increment instead of post-increment in loops
Merge pull request #109.