CompletionModel: wipe out the current implementation

Keep the maximum for the new implementation.
There are also a few minor changes.
CompletionModel: new implementation (attention wip!)