Added distribution graph type. Closes #9, closes #8, and closes #7.
Abstracted a few functions.