Fixed bug that caused RuntimeExceptions; added a new example script
math.tt