minor refactoring

Hey there - I was just looking for a very basic stats package and found your notes. It does everything I'm looking for at this point so I thought I'd work with what you created and clean it up a bit. 

Cheers