Added model management code + doc improvements.