Handles model refs+cleans up spec
Rebuilds documentation