Add input capacity.
Fix params confusing "0" and "undefined"

This would cause some properties to become default instead of 0 when requested.
Finalise v1.0.1