Updated documentation to include ::getReturnCode