[Code] Most of do_score put in.  Needs some formatting work and a bit more information.