Planck's oscillators and the energy assumption

First of all, why is $$E = h\nu$$?

Second, where can I find the derivation behind Planck's "oscillators in a box" calculations that led to the assumption that energy is quantized?

I realize that my questions are a bit vague, but I cannot make them more specific as I do not have a firm grasp of the subject.