Attempted to make qp use key/value arguments.

I can't get the dims to line up, and this isn't passing its tests.
But it's a start.