Add register controller. Made memory static. VM object pass to VMcontroller constructor.