Fix calls to loadfn
Update generated files
Add a really basic example