Added scripting error checks

New logic for checking scripting errors
Included math Lua library by default
Updated Lua script example (Scripts/example2.lua)
Minor UI label updates