fixed q-val building
long -> int
Merge pull request #2 from scopatz/q_vals

Q vals