fixed a bunch of bugs
made VMM more dynamic
added more destructors
added a few more 'const'