Created Library

Also fixed a bug with the expectedScore cache.