Updated documentation.
Fixed argument check.