More improvements

Be able to generate intermediary namespaces
Fix the def handling on args
Update the example