added models tests, updated documentation.