Spot of tidying-up.
Implement function parameter counting.
More parameter unit tests.
Add parameter info to output formats.
Bump version.