Create SubVQModGenerator.php

Pulled class out of index.php and added comments