Consolidated repositories and UI.
Added initial model validation code.