Fixed bug with function call: functions shall not work like macroses
Easying debugging
added integer division function
added gcd and lcm