adding defined function registory
bugs fixed of typing function call
removed debug messages