* added Error message if ending isn't correct type
* fixed script name in Debug Outputs