Add particles tally

Updated and refactored the Tally class to address some shortcomings, and added more tests.
If these aren't needed they should be deleted