- added : template generator for operations and made some refactoring