Fixes to memory reading
Performance improvements to graphics