use QVector instead of std::vector in sphere generator.
made a couple function arguments const references.