added graphing. still needs making tidy. closes #10