restructured models to use references, not embedded docs