Tidy-up. Move Tally class to separate file. Remove dead code.
Some notes about how I'm deploying this