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