Checking for nil arguments; some doc fixes.