fixed vMscratch starting from 0 to 1, scrapping changes made last week for fixing memory leaks (will do that later after cleaning up the code)