updated documentation and fixed badly named argument