started to add my own version of vqmod. trying to get the code into a single class.