Adding in the documentation on return codes