Avoids the clutter and maintenance effort associated with providing the function signature string.
Also moved global classes which should be in the Foam namespace into it.