Fitch natural deduction proof of $\neg D, A \to B, B \to (C \lor D), A \lor C \vdash C$ I've been struggling with a natural deduction problem for a while now...can anyone perhaps shed some light on where I'm going wrong here?

As you can see, I need to prove C from the given premises. My natural first move is to assume the negation of C and then prove a contradiction, but I run into a dead end if I start with ¬C as it doesn't flow into any other premises.
I therefore decided to start with a subproof with A as the premise. This leads to a couple of other deductions, and I get to the point where I have (C V D). I know that D is false (as per line 1) but I don't know how to get this over the line (to show that C is true as D is false).
Can someone please put me out of my misery?
Thanks all!
 A: The idea of the proof of $C \lor D, \neg D \therefore C$ (known under the name "disjunctive syllogism") is the following: We know that one out of C or D must hold, so we consider both cases and start to assume either of the disjuncts, D and C. But we know that it can't be D that holds, because if we assume that it does, this contradicts our premise that D is false, so we derive a contradiction from which we can conclude anything, including C. And in the other case where we assume C to be true, we trivially get C as well, so in any case, we can conclude C, not matter which of the disjuncts C or D is in fact true.   
This is precisely the idea of disjunction elimination. And with a disjunction elimination, the proof has the following structure:

The lines to be cited in the $\lor E$ application are the lines of the major premise $C \lor D$ and the two subproofs $C \vdash C$ and $D \vdash C$. This explains one of the errors you got: The line range for the subproof with premise $C$ was missing. The other error is that the subproof with premise $D$ does not have the conclusion $C$.  
With the above skeleton, we just ned to find out how to get from C to C, and from D to C, using the premises in lines 1 and 2.
$C \vdash C$ is easy: We already have $C$ as the premise of the subproof, so we can just reiterate the line.
For $D \vdash C$, you were already on the right track: The premise $D$ of the subproof contradicts the previous assumption $\neg D$, which yields a contradiction. By es falso quodlibet, from $\bot$ we may conclude anything; conventiently, we can choose $C$.
Since from both $C$ and $D$ we derived $C$, we can apply $\lor E$ on the premise $C \lor D$ and conclude $C$, as desired.  

(The rule name $X$ in line 7 is more commonly known as $\bot$, or $\bot E$, or "ex falso quodlibet (EFQL)", or "principle of explosion", depending on which of the hundreds of textbooks out there you're using.)
Then to finish the whole proof, you just need one final $\lor E$ to derive $A \lor C \vdash C$ and you're done:

