Error handling and documentation changes.