Added echo statement for output of functions.
Added modulus function.