Polish, bugfixes and documentation updates for the entire Model API.
Small fixes in the Pipeline and InMemory model adapters.