Moved test code into nqg.py
Added code to auto detect sphere mesh outer radius