Added type checked registerFunction() to lua
LUA: Added support for missing function types, added print output, added error checking
Added isalpha(string) function