Cleaned up controller and view. Kept the handling of graph in the view. 
It doesn't need any help from the model anyway. It's an input.

Made polynomials even more cooler.