quadratic constraints + minor fixes

I've implemented and documented the method for adding quadratic constraints, as well as added some convenience methods.