Fixed missing math functions.
Example updates.