Added asynchronous reading mode to function getMsgFromS2Sim. Added an example testRandLoadAsync to test this mode.