adds test for math stuff, fixes graphs & distributions