Added vm class and debug function. VM class is not yet working