implemented all operators, and work in progress for code generation
work in progress on converting templates into C code