Move math expressions to own library, re-organize structure, update doc link.