added lots of functionality to score(), data, etc.