Documentation, error handling