Basically works - need to pretty up output window, add labels, get rid of qrynum-as-global, also set up flags for CLI