Math lib completed. Fixed minor typos.