Library: I had misunderstood const/pure a little so I corrected cfg and code