added beginnings of core memory, fixed scrolling