Complete all the details of the following argument: "Let $ S = \left\{ v_1,v_2,\ldots,v_r \right\} \subset V$ an orthonormal set with the maximum possible numbers of elements. For all $u \in V$, the vector: $$ w = u - \sum_{i=1}^r \langle u,v_i\rangle v_i $$ is orthogonal to $v_1,v_2,\ldots,v_r$. Because of $S$ is with the maximum possible numbers of elements, $w=0$, and then $S$ generates $V$, and $S$ is an orthonormal basis."
I really don't get what I should complete in the argument because for me it's almost perfect... What I've done is:
Since $w = 0$ we get that: $$ u = \sum_{i=1}^r \langle u,v_i\rangle v_i $$
and because of that, we can conclude that $u$ is always going to be a multiple of $v_i$, hence, generated by $S$.
Now we get that $S$ generates $u$ with some linear combination of it's vectors, and we get that $u$ is any vector in $V$, hence, $S$ generates $V$.
Is it just that? Am I missing any crucial part of this exercise?
Thanks!