Added error handling documentation