Revert "Argument check updated"

This reverts commit 8bd4bc2731dc5ebbdc7685e533c10caf219900ea.
Revert "Revert "Argument check updated""

This reverts commit 6e25d3d2ae2916e67361b6fde5baf172ac39d552.
Revert "Revert "Revert "Argument check updated"""

This reverts commit 8510340684cd4f0f5ac06be4d9601c5df8b7fe21.
Documentation corrected
Correct argin check

length(varargin) replaced with nargin
Use varargin instead of explicitly defined arguments