Moved memory related files to new folder, added some more comments