Cleaning up the score API and adding a few tests.
In addition to the score API cleanup, there is doc, test fixes,
and some refactoring around API use.