the new code-generation is now writing cache files

adjusted formatting for module and field options and fixed a namespace/package bug.