added mod (%) and reworked operator precedence