updated internal_functions to shorter 'function' format

made non-descript edits to arithmatic