added new lib
updates for matR function changes