Fix doc warning and errors