Math routine, fix divide by zero bug, add Sublime Text syntax file