redesign all ECL functions
added new ECL templates
all found bugs fixed