Updated Modulator to new classdef style