Fixed docs
Appled the fixes to the return codes, suggested by Cedric Serfon