ENH: changed finding the way of q_ring_val
BUG: now q_val can handle (N, ) shaped arrays as well as (N, 1) shaped
DOC: modified the documentation for q_val
STY: style fixed with PEP8