updated math library project, and updated some functions