fix tsum
doctests and scoring fixes
refactoring; everything broken