Changed documentation from [1] [2] to [in] [out].
Expanded documentation