allows for nested namespaces based on file path by adding function handling to namespace option

Closes gh-90.
v0.6.1