Recursion bug, optimisations, formatting.
FB 4309: correct max IOPS is 4000
Merge pull request #134 from maksimov/develop

Recursion bugfix, FB 4309