NEVER MIND !!! .........
Sorry,
It was the shell complaining that it couldn't find some characters.
I had forgotten to hash out a comment after a function so I had something like this;
Function() Description
changing it to
Function() # Description
solved it. Many thanks for your time and sorry for a silly mistake.
By the way, is it possible to call a function from within another function?