1) Firstly, I don't understand why cases $n=0$ and $k=n$ are seperated from the sum?
2) Then if we put k=1 then why n on the top of the sum symbol still stays the same instead of changing to $n+1$?
3) Why after the first summation f is derived in k-th order instead of $(k+1)$ like before? And if the n on the sum symbol doesn't change, then why do function $g$ is derived at $(n+1-k)$ th order? ( You can correct my terminology.)
4) Why after the second summation symbol there is $k-1$?

The following might be helpful.
In fact it is not plausible to separate the cases $n=0$ and $k=n$ at this moment. It becomes more plausible when we change the order of the steps.
Note, splitting the summation was done in order to use the binomial identity
\begin{align*} \binom{n}{k-1}+\binom{n}{k}=\binom{n+1}{k}\tag{2} \end{align*}
Comment:
In (3) we shift the index of the left-hand sum by one to start with $k=1$. We now have the convenient situation that we can use the binomial identity from (2). But the sums do not have the same index region.
This is the reason why we separate the case $k=n+1$ from the left-hand sum and the case $k=0$ from the right-hand sum in (4).
In (5) we can apply (2) since we have separated the two cases where the indices do not coincide.
In (6) we merge the single terms back into the sum.