Added direction param in doc

Added direction parameter in documentation.