added basic support for exported function factories (without arguments) [#8]
Merge branch 'factory-functions' into develop