now all core modules export:
 spec: functions
 all other: constructors
 types: common node types (strings)
implemented new template builder