change interface functions according to that of the mmspa4pg lib
modify the demo benchmark program according to the new interfaces
add interface functions according to the mmspa4pg lib