Updated memory scan UI and added more comments