fixed the set_template method. corrected some regex typos. implemented support for nested function calls within the templates added the 'iterator' and is_odd' template function calls.
Changed paths: