Added comments to demo_backward
Create CHECK_EQ_MEX