Implement the memory reading! Lots of thanks to @Shauren!
Code clean-up