Create implicit namespace for functions

Use the output filename as the top-level namespace.