update options for matgen
added back mpreal support for lamch and invert
fixed digits for mpreal